Fix .type directive syntax for ARM targets#168
Fix .type directive syntax for ARM targets#168walruscraft wants to merge 1 commit intosunfishcode:mainfrom
Conversation
ARM GNU assembler uses %function instead of @function for the .type directive. This was causing build failures on arm-unknown-linux-gnueabihf.
| @@ -54,7 +54,10 @@ macro_rules! naked_fn { | |||
| /// `#[naked]` is nightly-only. We use it when we can, and fall back to | |||
| /// `global_asm` otherwise. This macro supports a limited subset of the | |||
| /// features of `#[naked]`. | |||
There was a problem hiding this comment.
#[naked] is now available on stable.
|
Thanks for the pointer! Unfortunately the |
|
I don't mean that you should enable the nightly feature. Rather I think you can change origin to use |
|
Ah, you're right - I was confusing the Happy to look into refactoring |
|
A new PR probably makes sense. |
|
Closing in favor of #169 which takes the cleaner approach of using stable |
ARM GNU assembler uses
%functioninstead of@functionfor the.typedirective. The@functionsyntax causes build failures onarm-unknown-linux-gnueabihf:This adds an ARM-specific variant of the
naked_fn!macro that uses the correct syntax.Tested with
cargo build --target arm-unknown-linux-gnueabihf.